﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UnitAdd.aspx.cs" Inherits="User_UnitAdd" Theme="normal"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head  runat="server">
    <title>部门新增</title>
    <link href="../css/StyleforBase.css" type="text/css" rel="stylesheet" />
    <link href="../css/MessageTable.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color:#fcf6ec">
    <form id="form1" runat="server">
    <div>
        <div class="normalnav">
                <div class="normalcontent">
                    <span style="color: #000000">用户管理>>>部门管理>>>部门新增</span></div>
            </div>
    </div>
    <div style="height:40px">
    </div>
    <div>
        <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF"
                class="table">
                <tr class="TR_BG_list">
                    <td align="right" class="navi_link" style="width:15%;">
                        <span style="color: Red;">*</span>部门名称：</td>
                    <td align="left" colspan="3" style="width:85%;">
                        <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtName"  
                            runat="server" ErrorMessage="部门名称不能为空"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <!--间隔校验结果-->
                <tr class="TR_BG_list">
                    <td align="right" class="navi_link">
                    </td>
                    <td width="90%" align="left" colspan="3">
                        <span class="reshow">
                            <asp:Label ID="lblDealerCode" runat="server"></asp:Label></span>
                    </td>
                </tr>
                <tr class="TR_BG_list">
                    <td align="right" class="navi_link">
                        <span style="color: Red;">*</span>权重：</td>
                    <td width="90%" align="left" colspan="3">
                        <asp:TextBox ID="txtOrder" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtOrder"  runat="server" ErrorMessage="权重不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidatorfortxtOrder" runat="server" ControlToValidate="txtOrder"
							CssClass="Text" ErrorMessage="格式不正确！应为大于或等于零的整数" ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <!--间隔校验结果-->
                <tr class="TR_BG_list">
                    <td align="right" class="navi_link">
                    </td>
                    <td width="90%" align="left" colspan="3">
                    </td>
                </tr>
                <tr class="TR_BG_list">
                    <td align="right" class="navi_link">
                        <span style="color: Red;">*</span>上级部门：</td>
                    <td width="90%" align="left" colspan="3">
                        <asp:DropDownList ID="ddlParentUnit" runat="server">
                    </asp:DropDownList>
                    </td>
                </tr>
                <!--间隔校验结果-->
                <tr class="TR_BG_list">
                    <td align="right" class="navi_link">
                    </td>
                    <td width="90%" align="left" colspan="3">
                        <span class="reshow">
                            <asp:Label ID="lblDealerMobile" runat="server"></asp:Label></span>
                    </td>
                </tr>
                
                <tr class="TR_BG_list">
                    <td align="left" class="navi_link" colspan="4">
                        <asp:ImageButton ID="btnSave" runat="server" ImageUrl="../images/Basic/tianjia.gif"
                            ToolTip="新增" OnClick="submitBtn_Click" Width="20px" Height="20px"/>新增
                        <asp:ImageButton ID="butrReset" runat="server" ImageUrl="../images/Basic/zhuanfa.gif"
                            CausesValidation="False" ToolTip="返回" OnClick="ibtnback_Click" Width="20px" Height="20px" />返回
                    </td>
                </tr>
            </table>     

    </div>
    </form>
</body>

</html>